/**
 * Created by DELL on 2017/4/5.
 */
common.buildNormalEnumSelect(".houseStatus", enumObject.enumJsonData['houseStatus']);//创建跟进状态枚举列表
/**
 * 中介联系人 列表初始化设置
 * @type {Object}
 */
var settings = {
    "sAjaxSource": window.globalHost + common.collectHouseListPort,
    "aoColumns": [{
        "mDataProp": function(obj) {
            return "<a href='../submenu.html?key=agentHouse&id=" + obj.id + "'>" + (obj.houseNo?obj.houseNo:"无信息") + "</a>"
        },
        "sTitle": "悬赏状态",
        "sDefaultContent": "",
        "sClass": "center"
    }, {
        "mDataProp": function(obj) {
            return enumObject.getEnumValue("houseStatus",obj.houseStatus);
            // return obj.houseStatus?obj.houseStatus:"无信息";
        },
        "sTitle": "房源状态",
        "sDefaultContent": ""
    }, {
        "mDataProp": function(obj) {
            return (obj.companyName?obj.companyName:'无信息')+"<br>"+(obj.storeName?obj.storeName:"无信息");
        },
        "sTitle": "中介公司/门店",
        "sDefaultContent": ""
    }, {
        "mDataProp": function (obj) {
            return (!!obj.agentName?obj.agentName:"无信息")+'<br>'+(obj.agentMobile?obj.agentMobile:"无信息");
        },
        "sTitle": "经纪人/电话号码",
        "sDefaultContent": ""
    },{
        "mDataProp": function(obj) {
            return (!!obj.villageName?obj.villageName:"无信息")+'<br>'+(obj.houseAddress?obj.houseAddress:"无信息");
        },
        "sTitle": "小区/房屋地址",
        "sDefaultContent": ""
    }, {
        "mDataProp": "createTime",
        "sTitle": "录入时间",
        "sDefaultContent": ""
    }],
    "fnServerParams": function(aoData) {
        return common.getSearchData("form.data-list-search",aoData);
    }
};
var options = $.extend(true, {}, _dataTableSettings, settings);
/**
 * 实例化 中介联系人 列表插件
 * @type {[type]}
 */
var $currentDataTable=$("#data-list");
var oTable = $currentDataTable.dataTable(options);
searchList.getDataList(oTable);
searchList.resetSearch(oTable);

